SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO

-- =============================================
-- Author:		Emanuel Santos
-- Create date: 2013-01-26
-- Description:	Utilizado para alterar o estado do evento
-- =============================================
CREATE PROCEDURE [ext].[sp_fe_alterarEstadoEvento]
	-- Add the parameters for the stored procedure here
	@e_id int, 
	@cancelado BIT
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	UPDATE ext.evento SET cancelado = @cancelado WHERE id_evento = @e_id
END

GO
